function Book(title, price) {
	if (this instanceof Book) {
		this.title = title
		this.price = price
	} else {
		return new Book(title, price)
	}
}

let jsBook = Book('JavaScript设计模式', 50)
console.log(jsBook)
